380e860251d097f0b23c922b17b03fd984d91ac7,source/com/intellij/testFramework/fixtures/impl/JavaModuleFixtureBuilderImpl.java,JavaModuleFixtureBuilderImpl,initModule,#Module#,80
Before Change
final String[] roots = lib.getRoots(rootType);
for (String root : roots) {
final VirtualFile vRoot = OrderRootType.CLASSES.equals(rootType)
? JarFileSystem.getInstance().refreshAndFindFileByPath(root + "!/")
: LocalFileSystem.getInstance().refreshAndFindFileByPath(root);
if (vRoot != null) {
libraryModel.addRoot(vRoot, rootType);
}
After Change
for (String root : roots) {
VirtualFile vRoot = LocalFileSystem.getInstance().refreshAndFindFileByPath(root);
if (vRoot != null && OrderRootType.CLASSES.equals(rootType) && !vRoot.isDirectory()) {
final VirtualFile jar = JarFileSystem.getInstance().refreshAndFindFileByPath(root + "!/");
if (jar != null) vRoot = jar;
}
if (vRoot != null) {
libraryModel.addRoot(vRoot, rootType);